
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class VipHouseBO : Csla.BusinessBase<VipHouseBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in VipHouseBO
			//AuthorizationRules.AllowRead(VipHouseIDProperty, "VipHouseBOReadGroup");
			//AuthorizationRules.AllowRead(NewsHouseIDProperty, "VipHouseBOReadGroup");
			//AuthorizationRules.AllowRead(PriceProperty, "VipHouseBOReadGroup");
			//AuthorizationRules.AllowRead(RegisterDateProperty, "VipHouseBOReadGroup");
			//AuthorizationRules.AllowRead(NumRegisterProperty, "VipHouseBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "VipHouseBOReadGroup");
			//AuthorizationRules.AllowRead(NumPostProperty, "VipHouseBOReadGroup");
			//AuthorizationRules.AllowRead(IsExtensionProperty, "VipHouseBOReadGroup");

			//AuthorizationRules.AllowWrite(NewsHouseIDProperty, "VipHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(PriceProperty, "VipHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(RegisterDateProperty, "VipHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(NumRegisterProperty, "VipHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "VipHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(NumPostProperty, "VipHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsExtensionProperty, "VipHouseBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of VipHouseBO
			//AuthorizationRules.AllowCreate(typeof(VipHouseBO), "VipHouseBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(VipHouseBO), "VipHouseBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(VipHouseBO), "VipHouseBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.VipHouse data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
